package com.cee.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cee.dto.OneTwoTypeDTO;
import com.cee.dto.OneTypeDTO;
import com.cee.dto.TwoTypeDTO;
import com.cee.dto.UserDTO;
import com.cee.model.OneTwoType;
import com.cee.model.TwoType;
import com.cee.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OneTwoTypeMapper extends BaseMapper<OneTwoType> {
    OneTwoType getOneTwoType(OneTwoType oneTwoType);

    OneTwoTypeDTO getOneTwoTypeByStr(@Param("oneTypeName") String oneTypeName, @Param("twoTypeName") String twoTypeName);

    List<TwoType> getOneTwoTypeByOneType(@Param("oneTypeId") String oneTypeId);

    List<TwoTypeDTO> getTwoPageByDTO(TwoTypeDTO twoTypeDTO);

    void updateOneTwoTypeById(OneTwoType oneTwoType);
}
